package com.huaxin.common.Entity;

import java.util.List;

/**
 * @author lwjing
 * @date 2018/5/28
 * @Desc $desc$
 * Copyright HUAXIN DATA. All rights reserved.
 */
public class RepoContentDTO extends BaseDTO {

    private DataBean data;

    public DataBean getData() {
        return data;
    }

    public static class DataBean {
        private List<RepoContent> files; //文件
        private List<RepoContent> folders; //文件夹

        public List<RepoContent> getFiles() {
            return files;
        }

        public List<RepoContent> getFolders() {
            return folders;
        }
    }

    public static class RepoContent {

        private int id;
        private String texttype; //文件类型
        private String title;
        private String address; //文件下载地址
        private int    type; //文件类型 0文件 1文件夹
        private String name;//文件夹名称

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getTexttype() {
            return texttype;
        }

        public void setTexttype(String texttype) {
            this.texttype = texttype;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        @Override
        public String toString() {
            return "RepoContent{" +
                    "id=" + id +
                    ", texttype='" + texttype + '\'' +
                    ", title='" + title + '\'' +
                    ", address='" + address + '\'' +
                    ", type=" + type +
                    ", name='" + name + '\'' +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "RepoContentDTO{" +
                "data=" + data +
                '}';
    }
}
